<dataembed>
    <div id="pjax-{ opts.id }"></div>
    <script>

        this.on('mount', function(){
            $.get( opts.remote, function( data ) {
                $( '#pjax-'+opts.id).html( data );
            });
            $(document).on('submit', '#pjax-'+opts.id+' form', function(event) {
                $.pjax.submit(event, '#pjax-'+opts.id, {push: false, scrollTo: false})
            });
            $(document).on('click', '#pjax-'+opts.id+' a', function(event) {
                $.pjax.click(event, '#pjax-'+opts.id, {push: false, scrollTo: false})
            });
        });
    </script>
</dataembed>